package com.example.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (UserRole)实体类
 *
 * @author makejava
 * @since 2021-09-06 11:55:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRole implements Serializable {
	private static final long serialVersionUID = 891560775088408771L;
	/**
	 * 用户Id
	 */
	private Long userid;
	/**
	 * 角色Id
	 */
	private Long roleid;


	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Long getRoleid() {
		return roleid;
	}

	public void setRoleid(Long roleid) {
		this.roleid = roleid;
	}


	@Override
	public String toString() {
		return "UserRole{" +
				"userid=" + userid +
				", roleid=" + roleid +
				'}';
	}
}